package com.fishery.logistics.client;

import com.fishery.entity.Result;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PutMapping;

/**
 * @author run
 * @since 2021/2/1 21:45
 */
@Component
@FeignClient(value = "fishery-order-service")
public interface OrderClient {

    /**
     * 为订单执行送达操作
     * @param logisticsId
     * @return
     */
    @PutMapping("/order/receive/{id}")
    public Result receiveOrder(@PathVariable(value = "id") String logisticsId);
}
